﻿@model E_Learning_V3.Models.Afdeling
@{
    ViewBag.Title = "Edit";
}
<h2>
    Edit</h2>
@section scripts {
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
<table class="afdTable">
    <tr>
        <td id="afd">
            @using (Html.BeginForm())
            {
                @Html.ValidationSummary(true)
    
                <h4>
                    Afdeling</h4>

                @Html.HiddenFor(model => model.afdelingId)

                <div class="editor-label">
                    @Html.LabelFor(model => model.afdelingsNavn)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.afdelingsNavn)
                    @Html.ValidationMessageFor(model => model.afdelingsNavn)
                </div>

                <p>
                    <input type="submit" value="Save" />
                </p>

            }
        </td>
        <td id="partial">
            @Html.Partial("AfdOversigtPartial", Model)
        </td>
    </tr>
</table>
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
